﻿<phone:PhoneApplicationPage
    x:Class="A_larm_Shake.page_stopwatch"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:c4fToolkit="clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="#FF1699DD" Height="768" VerticalAlignment="Bottom">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Grid.Row="0" Margin="12,10,18,0" Height="34" VerticalAlignment="Top" Background="#FF01669A">
            <TextBlock Text="Stop watch Shake " Style="{StaticResource PhoneTextNormalStyle}" Foreground="White"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,18,30">
        	<Grid.Background>
        		<SolidColorBrush Color="#FF5DB1DD" Opacity="2.5499999523162842"/>
        	</Grid.Background>
            <Rectangle Fill="#FF28A9EB" HorizontalAlignment="Center" Height="143" Margin="-11,46,0,0" VerticalAlignment="Top" Width="361"/>
            <Button x:Name="bt_Startwatch" Content="Start" HorizontalAlignment="Left" Margin="39,225,0,0" VerticalAlignment="Top" Width="135" Click="bt_Startwatch_Click"/>
            <Button x:Name="bt_Cancelwatch" Content="Reset" HorizontalAlignment="Left" Margin="265,225,0,0" VerticalAlignment="Top" Width="135" Click="bt_Cancelwatch_Click"/>
            <Button x:Name="bt_Pausewatch" Content="Stop" HorizontalAlignment="Left" Margin="39,225,0,0" VerticalAlignment="Top" Width="135" Click="bt_Pausewatch_Click"/>
            <Button x:Name="bt_Lapwatch" Content="Lap" HorizontalAlignment="Left" Margin="265,225,0,0" VerticalAlignment="Top" Width="135" Click="bt_Lapwatch_Click" />
            <TextBlock Height="88" HorizontalAlignment="Center" Margin="39,76,50,0" Name="txtDigitalClock" Text="TextBlock" VerticalAlignment="Top" Width="361" FontSize="50" TextAlignment="Center" />

            <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Name="Scroller" Margin="0,368,0,10">
                <TextBlock x:Name="textBl" HorizontalAlignment="Center" Height="auto" TextWrapping="Wrap" VerticalAlignment="Top" Width="363" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"/>
            </ScrollViewer>
            <TextBlock HorizontalAlignment="Left" Margin="42,331,0,0" TextWrapping="Wrap" Text="Lap time :" VerticalAlignment="Top" Width="106" FontSize="24"/>
            <!--   <toolkit:TimePicker Name="tp" Margin="-10,-12,10,597"/> -->
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>